#ifndef _physicsworld_h_included_
#define _physicsworld_h_included_
#include <d3dx9.h>
#include <d3d9.h>
#include <string>
#include <Vector>
#include <map>
#include "Model.h"
#include "PhysicsPlane.h"

using namespace std;
class Model;

class PhysicsWorld
{
	//The model the physics object will update. 
	vector<Model*>* mModels;

	vector<Model*>* modelCollisions;

	

public:
	float mew;
	float rest;
	//Default Constructor sets everything to zero
	PhysicsWorld();

	void Update(double pElapsedTime );
	
	void AddModel(Model* pModel);

	virtual void Release();

	Model* CheckCollision(Model *modelToCheck);

	void ClearCollisions() {modelCollisions->clear();}
};
#endif
